
class B extends Thread {

	public boolean heppo = true;
	public B(){
		start();
	} 

	public void run() {
		while (heppo) {
			try {
				System.out.println("sleeping");
				Thread.sleep(60 * 10);
			} catch (Exception e) {
				System.out.println("e" + e);
			}
		}
	   System.out.println("exiting");
	}
	public static void main(String args[]) throws Exception{
		B b = new B(); 
		b.interrupt(); 
	}
}

